/**
 *  Copyright (C) 2010:
 *                 Buzzanca Marco <marco.bzn@gmail.com>
 *         Monaco Davide Giuseppe <black.ralkass@gmail.com>
 *              Petralia Veronica <veronicapetralia@gmail.com>
 *
 * This file is part of DS2011BMP
 *
 * DS2011BMP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * DS2011BMP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

/**
 * @file uiproxyfactory.h
 * @author Marco Buzzanca
 *
 * This header file contains UIFProxyFactory class declaration.
 */

#ifndef _UI_PROXY_FACTORY_H_
#define _UI_PROXY_FACTORY_H_ 1

#include <boost/shared_ptr.hpp>
#include <string>

#include "address.h"
#include "uiproxy.h"

/**
 * UIProxy type using boost::shared_pointer to manage memory.
 */
typedef boost::shared_ptr<UIProxy> ui_proxy_t;

/**
 * @brief UIProxy is invoked by UI in order to obtain the instance
 * of a UIProxy, needed to communicate with the Manager.
 */
class UIProxyFactory
{
private:
  /**
   * @brief Default UI address.
   */
  Address _addr;

public:
  /**
   * @brief Default Constructor.
   */
  UIProxyFactory(void);

  /**
   * @brief Destructor.
   */
  ~UIProxyFactory(void);

  /**
   * @brief Returns a WFQueueManagerProxy initialized with default address
   * and port parameters.
   */
  ui_proxy_t getProxy(void);
};

#endif /* _WF_Q_PROXY_FACTORY_H_ */


